package com.mihu.footprints;

import android.os.Bundle;
import android.view.Window;

import com.mihu.base.activity.FragmentTabActivity;
import com.mihu.footprints.fragment.CalendarFragment;
import com.mihu.footprints.fragment.FootprintFragment;
import com.mihu.footprints.fragment.FriendFragment;
import com.mihu.footprints.fragment.SettingFragment;

public class MainActivity extends FragmentTabActivity{

	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		setTabWidgetBackground(R.drawable.tab_bar_bg);

		addTab("足迹", R.layout.tab_indicator_more, FootprintFragment.class,
				null);
		
		addTab("日程", R.layout.tab_indicator_more, CalendarFragment.class, null);
		
		addTab("好友", R.layout.tab_indicator_my, FriendFragment.class, null);
		
		addTab("设置", R.layout.tab_indicator_more, SettingFragment.class, null);

	}
	
	@Override
	protected void setOnContentView() {
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.fragment_tabs_bottom);
	}
	
	
}
